package com.fzk.vo;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * 响应结果
 *
 * @author fzk
 * @datetime 2023-03-18 19:19
 */
@Data
@AllArgsConstructor
public class HttpResult {
    private int code;
    private String msg;
    private Object data;

    public static HttpResult success(Object data) {
        return new HttpResult(200, "ok", data);
    }
}
